package siberia.object;

public class FloatObj implements Obj {
    private float value;

    public FloatObj(float value) {
        this.value = value;
    }

    public int getIntValue() {
        return (int) value;
    }

    public float getFloatValue() {
        return value;
    }

    public boolean getBoolValue() {
        return value != 0.0f;
    }

    public String getStringValue() {
        return String.valueOf(value);
    }

    public ObjType type() {
        return ObjType.FloatObj;
    }
}
